package alp.starcode.framework.database.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author yanglin
 * @since 2021-10-21
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("group")
public class Group extends Model<Group> {

    private static final long serialVersionUID=1L;

    @TableId("id")
    private Integer id;

    /**
     * 群组名称
     */
    @TableField("name")
    private String name;

    @TableField("avatar")
    private String avatar;

    @TableField("user_id")
    private Integer userId;

    @TableField("remark")
    private String remark;

    /**
     * 邀请确认
     */
    @TableField("invite_confirm")
    private Integer inviteConfirm;

    @TableField("status")
    private Integer status;

    @TableField("create_time")
    private Long createTime;

    @TableField("update_time")
    private Long updateTime;


}
